<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="错误提示">
    <meta name="keywords" content="关键字">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>错误提示</title>
    <!-- 设置多核浏览器的默认渲染器 -->
    <meta name="renderer" content="webkit">
    <!-- 防止百度广告 -->
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <style>
        body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img, div { margin: 0; padding: 0; border: 0; }
        body{ background:#fff; color:#333; font-size:1rem; margin: 0; font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif; }
        ul{ list-style:none; line-height: 0; }
        pre{ margin: 0; padding: 0; }
        .container{ margin: 2rem 0; }
        .notice{ text-align: center; margin-bottom: 1rem; }
        .description{ margin: 0 auto; padding: 0 .5rem; color: #333; max-width: 800px; }
        .message{ border: 1px solid #a3a3a3; border-top-right-radius: 5px; border-top-left-radius: 5px; padding: .5rem; overflow-y: scroll; }
        .detail{ overflow-y: scroll; border: 1px solid #a3a3a3; border-top: 0; background: #f9f9f9; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
        .file{ border: 1px solid #a3a3a3; border-top: none; padding: .5rem; }
        .in{ font-size: 1.2rem; margin-right: 1rem; }
        .act{ background: #f8cbcb; }
        .copyright{ text-align: center; color: #999; margin-bottom: 1rem; font-size: .8rem; font-weight: bold; }
        .detail li{ line-height: 1.5rem; padding: 0 .5rem; }
        .line{ color: #999; }
    </style>

</head>
<body>

    <div class="container">
        <h3 class="notice">┗|｀O′|┛ 嗷~~ {if ($e['type'] == 'error')}发生了一个错误{else}抛出了一个异常{/if}</h3>
        <div class="description">
            <h4 class="message">{$e.message}</h4>
            {if (isset($e['file']))}
            <div class="file">
                <span class="in">In</span>
                <a href="#" title="{$e['file']}">{$e['path']['basename']}</a>
            </div>
            {/if}
            {if (isset($detail))}
            <div class="detail" {if (isset($e['trace']))}style="border-radius: 0;"{/if}>
                <pre>
                    <ul>
                        {each name='detail' item='d' key='k'}
                            {if ($k == $e["line"])}
                                <li class="act"><span class="line">{$k}</span>{$d}</li>
                            {else}
                                <li><span class="line">{$k}</span>{$d}</li>
                            {/if}
                        {/each}
                    </ul>
                </pre>
            </div>
            {/if}
            {if (isset($e['trace']))}
                <div class="file">
                    <span class="in">Trace</span>
                </div>
                <div class="detail">
                    <ul>
                        {each name="e.trace" item="t"}
                            <li>
                                <span>{$t['class']}::{$t['function']}</span>
                                <span>{$t['line']}</span>
                                <span><a href="#" title="{$t['file']}">{$t['filename']}</a></span>
                            </li>
                        {/each}
                    </ul>
                </div>
            {/if}
        </div>
    </div>

</body>

<div class="copyright">micro framework.</div>

</html>